package com.yz.book.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author ste
 * @since 2023-02-04 03:37:36
 */
@Data
@TableName("t_cart")
public class Cart {

    @TableId("id")
    private Integer id;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 购买量
     */
    @TableField("buy_count")
    private Integer buyCount;

    /**
     * 小计
     */
    @TableField("sum_price")
    private BigDecimal sumPrice;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;


}
